<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        console.log(1 + 1);
        console.log(1 - 1);
        console.log(1 * 1);
        console.log(1 / 1);
        console.log('------------------------');
        // 取余，模运算。
        console.log(5 % 2); // 1
        console.log(5 % 3); // 2
        console.log(4 % 6); // 4
        console.log('=======================');
        // parseInt  float  失真，精度失真。后期解决
        console.log(0.1 + 0.2); // 0.30000000000000004 
        console.log(0.07 * 100);
        console.log('+++++++++++++++++++++');
        var num = 0.1 + 0.2;
        // 不能那浮点数，直接进行比较。
        console.log(num == 0.3);    //false 
    </script>
</head>

<body>

</body>

</html>